<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    var a = [1,2,3,4,5,6,7,8,9,0,12,23,45,90];
    a.sort(function (a,b) {
        var sign = (Math.random()>0.5) ? 1 : -1;
        return (a-b)*sign;
    });
    console.log(a)
</script>
</body>
</html>